package zjitc.interfa2.charge;

import java.util.Scanner;

/**
 * @Author admin
 * @Date 2019/3/22 10:55
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("请选择哪种车去看电影：1--出租车       2--公交车");
        Scanner in =new Scanner(System.in);
        int a=in.nextInt();
        Charge charge=ChargeFactory.setcharge(a);
        charge.charge();
        Cinema cinema=new Cinema();
        cinema.charge();
    }
}
